package com.ruoyi.ftrl.mqtt.domain;

/**
 * MQTT消息实体类
 */
public class MqttMessage {

    /** 主题 */
    private String topic;

    /** 消息内容 */
    private String payload;

    /** 服务质量 */
    private int qos = 1;

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public int getQos() {
        return qos;
    }

    public void setQos(int qos) {
        this.qos = qos;
    }

    @Override
    public String toString() {
        return "MqttMessage [topic=" + topic + ", payload=" + payload + ", qos=" + qos + "]";
    }
}